<?
 session_start();
 require("admin/connect.php"); 
?>
<html><!-- InstanceBegin template="/Templates/hocsinhtemplate.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="Javascript" src="scripts/innovaeditor.js"></script>
<link rel="stylesheet" type="text/css" href="css/engine.css" />
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script language="javascript" type="text/javascript" src="js/datetimepicker.js">
</script>
</head>
<body>
<table align="center" width="938" cellpadding="0" cellspacing="0" border="0">
	<tr><td colspan="3" height="26" bgcolor="#CCCCCC">		
	<? 
		$malop=$_REQUEST["mal"];
		$resu99=mysql_query("select * from lop where mal='{$malop}'");
		$row99=mysql_fetch_array($resu99);
	?>	
	<!--Menu 1-->
	<div id="tool">

	<a href="index.php">Trang chủ trường</a>
		 | 
		 <a href="hotrohoctap.php">Hỗ trợ học tập</a>
		 |				 
		<a href="lienhe.php">Liên hệ</a>
	</div>
	<!--het menu 1-->
	</td></tr>
	<tr><td colspan="3" height="34" bgcolor="#CCCCCC">	
	<div id="menuwrapper">
		<ul id="p7menubar">
			 <li><a class="trigger" href="lopcuatoi.php?mal=<? echo $malop;?>" target="_self">Trang chủ <? echo $row99["tenl"];?></a></li>										  	
		  <li class="linemenus"></li>					 
		  <li>
		  <?
		  	if ($_SESSION["login"]!=true){
		  ?>		  
		  <a class="trigger" href="login.php" target="_self">Trang cá nhân</a>
		  <? } else {
		  		if($_SESSION["quyen"]==0) {
		  ?>	
		   			<a class="trigger" href="admin/index.php" target="_self">Trang cá nhân</a>
		  		<? } else if($_SESSION["quyen"]==1) {?>
					<a class="trigger" href="giaovien.php?magv=<? echo $_SESSION["username"];?>" target="_self">Trang cá nhân</a>
				<? } else if($_SESSION["quyen"]==2) {?>
					<a class="trigger" href="trangphuhuynh.php?maph=<? echo $_SESSION["username"];?>&mal=<? echo $malop;?>" target="_self">Trang cá nhân</a>
				<? } else if(($_SESSION["quyen"]==3) || ($_SESSION["quyen"]==4)) {?>
					<a class="trigger" href="tranghocsinh.php?mahs=<? echo $_SESSION["username"];?>&mal=<? echo $malop;?>" target="_self">Trang cá nhân</a>
				<? }?>
		  		
		  <? }?>
		  <!--bat dau phan dang nhap-->
		  <?
				if ($_SESSION["login"]!=true){
			?>
			 <li class="linemenus"></li>					 
		  	 <li><a class="trigger" href="login.php" target="_self">Đăng nhập</a>			
			<? }else{?>
			 <li class="linemenus"></li>					 
		  	 <li><a class="trigger" href="logout.php" target="_self">Thoát</a>			
			 <li class="linemenus"></li>
			 <li><a class="trigger">
			 	<?
		$nguoidung=$_SESSION["username"];
		if($_SESSION["quyen"]==0){
		$resu23=mysql_query("select * from admin where maadmin='{$nguoidung}'");
		$row23=mysql_fetch_array($resu23);
		?>
			<font color="#FFFFFF">			 
			<? echo "Xin chào : ".$row23["hotendem"]."&nbsp;".$row23["ten"]; ?>
			</font>
		<? }else if($_SESSION["quyen"]==1){
			$resu23=mysql_query("select * from giaovien where magv='{$nguoidung}'");
			$row23=mysql_fetch_array($resu23);
		?>
			<font color="#FFFFFF">			 
			<? echo "Xin chào : ".$row23["hotendem"]."&nbsp;".$row23["ten"]; ?>
			</font>
		<? }else if($_SESSION["quyen"]==2){
			$resu23=mysql_query("select * from phuhuynh where maph='{$nguoidung}'");
			$row23=mysql_fetch_array($resu23);
		?>
			<font color="#FFFFFF">			 
			<? echo "Xin chào : ".$row23["tenph"]; ?>
			</font>
		<? }else if(($_SESSION["quyen"]==3)||($_SESSION["quyen"]==4)){
				$resu23=mysql_query("select * from hocsinh where mahs='{$nguoidung}'");
				$row23=mysql_fetch_array($resu23);
		?>
			<font color="#FFFFFF">			 
			<? echo "Xin chào : ".$row23["hotendem"]."&nbsp;".$row23["ten"]; ?>
			</font>
		<? }
	}?>
		  <!--het-->		 
		</ul>
	</div>	
	</td></tr>
	<tr>
		<td width="160px" height="800" valign="top">		
		<!--menu trai-->
		<table align="center" width="100%" border="1" cellpadding="0" cellspacing="0">
		<tr><td valign="middle" height="30">
			<a href="sodaubai.php?mal=<? echo $malop;?>"><img src="anh/sodaubai.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="sodaubai.php?mal=<? echo $malop;?>">Sổ đầu bài</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="danhsachhocsinh.php?mal=<? echo $malop;?>"><img src="anh/user.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="danhsachhocsinh.php?mal=<? echo $malop;?>">Danh sách học sinh</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="thuvienanhlop.php?mal=<? echo $malop;?>.php"><img src="anh/album.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="thuvienanhlop.php?mal=<? echo $malop;?>">Thư viện ảnh</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="lopcuatoi_baiviet.php?mal=<? echo $malop;?>"><img src="anh/baiviet.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="lopcuatoi_baiviet.php?mal=<? echo $malop;?>">Bài viết</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="thoikhoabieu.php?mal=<? echo $malop;?>"><img src="anh/thoikhoabieu.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="thoikhoabieu.php?mal=<? echo $malop;?>">Thời khóa biểu</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="thongbaolop.php?mal=<? echo $malop;?>"><img src="anh/thongbao.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="thongbaolop.php?mal=<? echo $malop;?>">Thông báo</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="tailieulop.php?mal=<? echo $malop;?>""><img src="anh/tailieu.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="tailieulop.php?mal=<? echo $malop;?>">Tài liệu Upload</a>
		</td></tr>
		<tr><td valign="middle" height="30">
			<a href="xemdiemlop.php?mal=<? echo $malop;?>""><img src="anh/xemdiem.png" height="16" width="16" border="0">&nbsp;&nbsp;</a><a href="xemdiemlop.php?mal=<? echo $malop;?>">Xem điểm</a>
		</td></tr>				
		</table>
		<!-- het menu trai-->
		</td>
		
    <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
	<?
	$mahs=$_REQUEST["mahs"];
	$result=mysql_query("select * from hocsinh where mahs='{$mahs}'");
	$r=mysql_fetch_array($result);
	$mal=$_REQUEST["mal"];	
	
	?>
	<table align="center" cellpadding="2" cellspacing="0" border="0" width="99%">
	<tr>
		<td align="center">
			<div class="gift_box_quatang">
					<div class="gift_quatang_topblog">
						<p class="gift_quatang_fl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_fl_right"><img src="anh/space.gif"></p>
					</div>
					<div class="gift_quatang_infoblog">
						<h1 align="left"><font color="#CC3333"></font></h1>
						<table align="center" cellpadding="0" cellspacing="3" border="0" width="100%">
							<tr>
								<td valign="top">
									<table align="center" cellpadding="2" cellspacing="0" border="0" width="100%">
										<tr><th align="left" colspan="2">Thông tin học sinh</th></tr>
										<tr>
											<td align="left">Mã học sinh:</td>
											<td align="left"><? echo $r["mahs"];?></td>
										</tr>
										<tr>
											<td align="left">Họ và tên:</td>
											<td align="left"><? echo $r["hotendem"]."&nbsp;".$r["ten"];?></td>
										</tr>
										<tr>
											<td align="left">Giới tính:</td>
											<td align="left"><?
												if($r["gioitinh"]==1)
												 { 
												 	echo "Nam";
												 }else {
												 	echo "Nữ";
												 }
												 ?></td>
										</tr>
										<tr>
											<td align="left">Ngày sinh:</td>
											<td align="left">
												<? echo $r["ngaysinh"];?>
											</td>
										</tr>
										<tr>
											<td align="left">Địa chỉ:</td>
											<td align="left"><? echo $r["diachi"];?></td>
										</tr>
										<tr>
											<td align="left">Lớp:</td>
											<td align="left">
											<? 
											$result1=mysql_query("select * from lop where mal='{$r["mal"]}'");
											$r1=mysql_fetch_array($result1);
											echo $r1["tenl"];
											?>
											</td>
										</tr>
									</table>
								</td>
								<td align="left" width="120">										
									<div style=" border:1px solid #EEEEEE; padding:5px;">
									<img src="thumb.php?h=130&w=116&url=anhhocsinh/<? echo $r["anh"];?>" border="0"/>
									</div>							
								</td>
							</tr>													
						</table>			 
						<div class="gift_quatang_mView">
							<span style="float:left; width:90px;">
							<?
							if(($_SESSION["username"]==$mahs)&&($_SESSION["quyen"]!=2)){
							?> 
							<a href="tranghocsinh_edit.php?mahs=<? echo $mahs;?>&mal=<? echo $mal;?>" title="">
							<img src="anh/dlet_artblock_point_1.gif" width="13" height="9" border="0" />
							Chỉnh sửa</a>
							<? }?>
							</span>
							<span style=" float: right; width:100px" >								
			
							</span>
						</div>
					</div>
					<div class="gift_quatang_btmblog">
						<p class="gift_quatang_bl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_bl_right"><img src="anh/space.gif"></p>
					</div>
			
				</div>
				<!--End-->
				<!--cac bai viet-->
				<div class="gift_box_quatang">
					<div class="gift_quatang_topblog">
						<p class="gift_quatang_fl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_fl_right"><img src="anh/space.gif"></p>
					</div>
					<div class="gift_quatang_infoblog">
						<h1 align="left"><font color="#CC3333">
							<?
							if(($_SESSION["username"]==$mahs)&&($_SESSION["quyen"]!=2)){
								echo "Các bài viết của bạn";
							}else{
								echo "Các bài viết của ".$r["hotendem"]."&nbsp;".$r["ten"];
							}
							?> 
						</font></h1>
						<table align="center" cellpadding="0" cellspacing="3" border="0" width="100%">
							<?														
							$result2=mysql_query("select * from baiviet where nguoidang='{$mahs}' order by ngay DESC");
							if(mysql_num_rows($result2)<=0){
								echo "<center>Không có bài viết nào !</center>";
							}else{
								$num_page=ceil(mysql_num_rows($result2)/5);
								$page = $_REQUEST["page"];
								if($page <= 0) $page = 1;
								if($page > $num_page) $page = $num_page;
								$a = ($page - 1)*5;
								$result3 = mysql_query("select * from baiviet where nguoidang='{$mahs}' and trangthai=1 order by ngay DESC limit {$a},5");
								while($r3=mysql_fetch_array($result3)){									
						?><tr><td colspan="2">							
							<a href="baiviet_detail.php?mabv=<? echo $r3["mabv"];?>&mal=<? echo $mal;?>">
								<img src="anh/icon1.gif" width="16" height="16" border="0">&nbsp;
								<? echo $r3["tieude"];?>
							</a>
							</td></tr>							
							<tr>
								<td colspan="2">
									<?										
										$string=$r3["noidung"];
										echo substr($string,0,100);
										if(strlen($string)>=101){
										echo "...";						
										}				
									?>
								</td>
							</tr>
							<tr>
								<td class="tieude3"> 
								vào lúc &nbsp;<? echo $r3["ngay"];?>
								</td>
								<td class="tieude4"></td>
							</tr>
							<tr><td colspan="2" class="tieude3">thuộc <?
							$result4=mysql_query("select * from loaibaiviet where malbv='{$r3["malbv"]}'");
							$r4=mysql_fetch_array($result4);
							?>
							<a href="loaibaiviet.php?malbv=<? echo $r1["malbv"];?>&mal=<? echo $mal;?>"><?
							echo $r4["tenlbv"];
							?></a>
							</td></tr>
							<tr><td colspan="2"></td></tr>
						<?
							}}
						?>																									
						</table>			 
						<div class="gift_quatang_mView">
							<span style="float:left; width:90px;">
							<strong>
							<?
								for($i = 1; $i <=$num_page; $i++)
								if ($i==$page)  echo "&nbsp;&nbsp;".$i."&nbsp;";
								else echo "&nbsp;<a href=?page={$i}&mahs=$mahs&mal=$mal>&nbsp;&nbsp;{$i}</a>&nbsp;";
							?>
							</strong>
							</span>
							<span style=" float: right; width:100px" >								
								<?
								if($_SESSION["quyen"]==1)
								{
									$magv=$_SESSION["username"];
									$result22=mysql_query("select * from lop where mal='{$mal}'");
									$r22=mysql_fetch_array($result22);
									if($magv==$r22["magvcn"]){
								?>
											<a href="vietbai.php?mal=<? echo $mal;?>" title="Viết bài mới">
												<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Viết bài mới
											</a>
									<? } else {
											$result23=mysql_query("select * from thoikhoabieu where magv='{$magv}' and mal='{$mal}'");
											if(mysql_num_rows($result23)>0)
											{?>
												<a href="vietbai.php?mal=<? echo $mal;?>" title="Viết bài mới">
												<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Viết bài mới
											</a>
											<? }
									?>
											
									<? }?>
								<?
								}else if(($_SESSION["quyen"]==3)||($_SESSION["quyen"]==4))
								{
									$mahs=$_SESSION["username"];
									$result4=mysql_query("select * from hocsinh where mahs='{$mahs}'");
									$r4=mysql_fetch_array($result4);
									if($mal==$r4["mal"])
									{
										?>
										<a href="vietbai.php?mal=<? echo $mal;?>" title="Viết bài mới">
										<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Viết bài mới
										</a>
										<?
									}
								}
								?>
			
							</span>
						</div>
					</div>
					<div class="gift_quatang_btmblog">
						<p class="gift_quatang_bl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_bl_right"><img src="anh/space.gif"></p>
					</div>
			
				</div>
				<!--end cac bai viet-->
				<!--cac tai lieu-->
				<div class="gift_box_quatang">
					<div class="gift_quatang_topblog">
						<p class="gift_quatang_fl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_fl_right"><img src="anh/space.gif"></p>
					</div>
					<div class="gift_quatang_infoblog">
						<h1 align="left"><font color="#CC3333">
							<?
							if(($_SESSION["username"]==$mahs)&&($_SESSION["quyen"]!=2)){
								echo "Các tài liệu upload của bạn";
							}else{
								echo "Các tài liệu upload của ".$r["hotendem"]."&nbsp;".$r["ten"];
							}
							?> 
						</font></h1>
						<table align="center" cellpadding="0" cellspacing="3" border="0" width="100%">
							<?														
							$result5=mysql_query("select * from tailieulop where nguoidang='{$mahs}' and trangthai='1' order by ngay DESC");
							if(mysql_num_rows($result5)<=0){
								echo "<center>Không có tài liệu nào !</center>";
							}else{
								$num_page2=ceil(mysql_num_rows($result5)/5);
								$page2 = $_REQUEST["page2"];
								if($page2 <= 0) $page2 = 1;
								if($page2 > $num_page2) $page2 = $num_page2;
								$a2 = ($page2 - 1)*5;
								$result6 = mysql_query("select * from tailieulop where nguoidang='{$mahs}' and trangthai='1' order by ngay DESC limit{$a2},5");
								while($r6=mysql_fetch_array($result6)){									
						?>
							<tr><td><? echo $r6["tentl"];?></td></tr>
							<tr><td><? echo $r6["mota"];?></td></tr>
							<tr>
								<td class="tieude3"> 
								vào lúc &nbsp;<? echo $r6["ngay"];?>
								</td>
								<td class="tieude4"></td>
							</tr>														
						<?
							}}
						?>																									
						</table>			 
						<div class="gift_quatang_mView">
							<span style="float:left; width:90px;">
							<strong>
							<?
								for($i2 = 1; $i2 <=$num_page2; $i2++)
								if ($i2==$page2)  echo "&nbsp;&nbsp;".$i2."&nbsp;";
								else echo "&nbsp;<a href=?page2={$i2}&mahs=$mahs&mal=$mal>&nbsp;&nbsp;{$i2}</a>&nbsp;";
							?>
							</strong>
							</span>
							<span style=" float: right; width:100px" >								
								<?
								if($_SESSION["quyen"]==1)
								{
									$magv=$_SESSION["username"];
									$result32=mysql_query("select * from lop where mal='{$mal}'");
									$r32=mysql_fetch_array($result22);
									if($magv==$r32["magvcn"]){
								?>
											<a href="uploadtailieulop.php?mal=<? echo $mal;?>">
												<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Upload tài liệu
											</a>
									<? } else {
											$result33=mysql_query("select * from thoikhoabieu where magv='{$magv}' and mal='{$mal}'");
											if(mysql_num_rows($result33)>0)
											{?>
												<a href="uploadtailieulop.php?mal=<? echo $mal;?>">
												<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Upload tài liệu
											</a>
											<? }
									?>
											
									<? }?>
								<?
								}else if(($_SESSION["quyen"]==3)||($_SESSION["quyen"]==4))
								{
									$mahs=$_SESSION["username"];
									$result41=mysql_query("select * from hocsinh where mahs='{$mahs}'");
									$r41=mysql_fetch_array($result41);
									if($mal==$r41["mal"])
									{
										?>
										<a href="uploadtailieulop.php?mal=<? echo $mal;?>" >
										<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Upload tài liệu
										</a>
										<?
									}
								}
								?>
			
							</span>
						</div>
					</div>
					<div class="gift_quatang_btmblog">
						<p class="gift_quatang_bl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_bl_right"><img src="anh/space.gif"></p>
					</div>
			
				</div>
				<!--end tai lieu-->
				<!--cac album anh-->
				<div class="gift_box_quatang">
					<div class="gift_quatang_topblog">
						<p class="gift_quatang_fl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_fl_right"><img src="anh/space.gif"></p>
					</div>
					<div class="gift_quatang_infoblog">
						<h1 align="left"><font color="#CC3333">
							<?
							if(($_SESSION["username"]==$mahs)&&($_SESSION["quyen"]!=2)){
								echo "Các album ảnh của bạn";
							}else{
								echo "Các album ảnh của ".$r["hotendem"]."&nbsp;".$r["ten"];
							}
							?> 
						</font></h1>
						<table align="center" cellpadding="0" cellspacing="3" border="0" width="100%">
							<?														
							$result71=mysql_query("select * from albumlop where nguoidang='{$mahs}' and trangthai='1' order by thoigian DESC");
							if(mysql_num_rows($result71)<=0){
								echo "<center>Không có album nào !</center>";
							}else{
								$num_page3=ceil(mysql_num_rows($result71)/5);
								$page3 = $_REQUEST["page3"];
								if($page3 <= 0) $page3 = 1;
								if($page3 > $num_page3) $page3 = $num_page3;
								$a3 =($page3 - 1)*5;
								$result8 = mysql_query("select * from albumlop where nguoidang='{$mahs}' and trangthai=1 limit {$a3},5");
								while($r8=mysql_fetch_array($result8)){									
						?>
							<tr><td>
								<a href="chitietalbumlop.php?maalbum=<? echo $r8["maalbum"]?>&mal=<? echo $mal;?>">
								<img src="anh/album.png" height="16" width="16" border="0">&nbsp;
								<? echo $r8["tenalbum"];?>
								</a>
							</td></tr>
							<tr>
								<td class="tieude3"> 
								vào lúc &nbsp;<? echo $r8["thoigian"];?>
								</td>
								<td class="tieude4"></td>
							</tr>														
						<?
							}}
						?>																									
						</table>			 
						<div class="gift_quatang_mView">
							<span style="float:left; width:90px;">
							<strong>
							<?
								for($i3 = 1; $i3 <=$num_page3; $i3++)
								if ($i3==$page3)  echo "&nbsp;&nbsp;".$i3."&nbsp;";
								else echo "&nbsp;<a href=?page3={$i3}&mahs=$mahs&mal=$mal>&nbsp;&nbsp;{$i3}</a>&nbsp;";
							?>
							</strong>
							</span>
							<span style=" float: right; width:100px" >								
								<?
								if($_SESSION["quyen"]==1)
								{
									$magv=$_SESSION["username"];
									$result32=mysql_query("select * from lop where mal='{$mal}'");
									$r32=mysql_fetch_array($result22);
									if($magv==$r32["magvcn"]){
								?>
											<a href="danganh.php?mal=<? echo $mal;?>">
												<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Upload ảnh
											</a>
									<? } else {
											$result33=mysql_query("select * from thoikhoabieu where magv='{$magv}' and mal='{$mal}'");
											if(mysql_num_rows($result33)>0)
											{?>
												<a href="danganh.php?mal=<? echo $mal;?>">
												<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Upload ảnh
											</a>
											<? }
									?>
											
									<? }?>
								<?
								}else if(($_SESSION["quyen"]==3)||($_SESSION["quyen"]==4))
								{
									$mahs=$_SESSION["username"];
									$result41=mysql_query("select * from hocsinh where mahs='{$mahs}'");
									$r41=mysql_fetch_array($result41);
									if($mal==$r41["mal"])
									{
										?>
										<a href="danganh.php?mal=<? echo $mal;?>" >
										<img src="anh/them.png" height="13" width="13" border="0">&nbsp;Upload ảnh
										</a>
										<?
									}
								}
								?>
			
							</span>
						</div>
					</div>
					<div class="gift_quatang_btmblog">
						<p class="gift_quatang_bl_left"><img src="anh/space.gif"></p>
						<p class="gift_quatang_bl_right"><img src="anh/space.gif"></p>
					</div>
			
				</div>
				<!--end tai lieu-->
		</td>
	</tr>	
	</table>
	
	<!-- InstanceEndEditable --></td>
	<!--menu phai-->
	<td width="190" valign="top" align="center">
		<div class="panel">
			<div class="panel_header">Danh sách bạn bè</div>
			<table align="center" width="100%" cellpadding="1" cellpadding="1" border="0">
			<tr>
			<?
				$resu4=mysql_query("select * from hocsinh where mal='{$malop}' ORDER BY RAND() LIMIT 12");
				$j=0;
				while($row4=mysql_fetch_array($resu4)){
					$j++;					
			?>
				<td>
				<div style=" border:1px solid #EEEEEE; padding:2px;">
				<a href="tranghocsinh.php?mahs=<? echo $row4["mahs"];?>&mal=<? echo $malop;?>" title="<? echo $row4["hotendem"]."&nbsp;".$row4["ten"];?>">
					<img src="thumb.php?h=41&w=41&url=anhhocsinh/<? echo $row4["anh"];?>" border="0"/>
				</a>
				</div>
				</td>
				<? if($j==4){?>			
			</tr><tr>
				<? 
				$j=0;
				}?>
			<? }?>
			</table>
		</div>
		<!--anh phai-->		
	</td>
	</tr>
	<tr><td colspan="3" align="center" valign="middle" bgcolor="#999999" height="100">Phạm Đức Đóa - Khoa CNTT - Đại học Xây Dựng</td></tr>
</table>
</body>
<!-- InstanceEnd --></html>
